// url是一個點擊就能下載的地址，file_path是保存路徑
var fs=require("fs");
var request=require("request");

var file_path="C:/hashaki/work/run/基于vnpy版本/for_quant/123.csv"
var url="http://192.168.101.137:8080/history-quote/mirror/files/1546860808271330800.csv"
var data=request(url)
var write_data=fs.createWriteStream(file_path)
data.pipe(write_data)